package com.newtouch.bxzs.business.message.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告新增或修改VO类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/28</td>
 * <td>liman</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@ApiModel("公告新增或修改VO类")
public class AnnouncementAddVO implements Serializable {

    /** serialVersionUID*/
    private static final long serialVersionUID = 7985662288948439933L;

    @ApiModelProperty("公告id 主键")
    private String announcementId;

    @ApiModelProperty(value = "公告名称",required = true)
    private String announcementName;

    @ApiModelProperty(value = "公告简介",required = true)
    private String announcementIntroduction;

    @ApiModelProperty(value = "公告内容",required = true)
    private String announcementContent;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("发布时间")
    private Date publishTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("撤销时间")
    private Date revokeTime;

    @ApiModelProperty(value = "发布状态：未发布1；已发布2；已结束3；已取消4；已撤销5",required = true)
    private String publishStatus;

}
